Skip to content

Geojson: fix show=False when not embedding data - #1289

Merged
ocefpaf merged 1 commit into
python-visualization:masterfrom
Conengmo:geojson-fix-show
Apr 13, 2020
Merged

ocefpaf merged 1 commit into
python-visualization:masterfrom
Conengmo:geojson-fix-show

Conversation

@Conengmo

Copy link
Copy Markdown
Member

Close #1283.

When we don't embed the data for GeoJson, it's loaded by ajax request. Currently we add the GeoJson layer to the map at the end of that request, but that leads to issues. The layer is unknown when layer control is initialized. Fix this by adding the layer to the map before the ajax request.

@Conengmo

Copy link
Copy Markdown
Member Author

@ocefpaf this PR is ready to be merged I think, do you want to take a final look? The issue reporter and I both tested it.

@ocefpaf
ocefpaf merged commit 690ec2b into python-visualization:master Apr 13, 2020
@Conengmo

Copy link
Copy Markdown
Member Author

Thanks!

@Conengmo
Conengmo deleted the geojson-fix-show branch April 13, 2020 16:41
@ocefpaf

ocefpaf commented Apr 13, 2020

Copy link
Copy Markdown
Member

Thanks!

Thank you for keeping the boat afloat! Let me know if you want to issue a new release.

@Conengmo

Copy link
Copy Markdown
Member Author

Will do! I hope to get one or two more fixes in, and then I’ll ping you for a release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GeoJson show arg doesn't work as expected

2 participants